﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Student>" %>
<%@ Import namespace="ViewRes" %>
<div>
<input type="checkbox" value='<%:Model.UserId%>' name="selectedStudents" />
    <span>
        <img src="<%:Url.Content("~/Content/Icons/student.png")%>" class="mediumIcon" />
            <span class="mediumBoldText"><%:Model.FullName%></span>
            <span class="smallgreytext">(<%:Model.Email%>)</span>    
    </span>
    <span>
        <%
            if (ViewData["LoggedUser"] is Administrator)
            {%>
        <a href="<%:Url.RouteUrl("Default",
                                               new {controller = "Students", action = "Edit", id = Model.UserId})%>"
            onclick=" editStudent(this.href);return false; ">
            <img class="mediumIcon" src="<%:Url.Content("~/Content/Icons/edit.png")%>" title = "<%:SharedStrings.Edit%>">
        </a>
        <%
            }%>
        <%--<a href="<%: Url.RouteUrl("Default", new {controller="Students", action="Delete", id=Model.UserId}) %>" class="deleteLink">
            <img class="mediumIcon" src="<%: Url.Content("~/Content/Icons/delete.png") %>" />
        </a>--%>
    </span>
</div>
